<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>新拟物卡片悬停特效</title>
    <style>
        *{
            font-family: '微软雅黑', sans-serif;
            box-sizing: border-box;
        }
        body {
            display:  flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            background-color: #ebf5fc;
        }
        .container {
            position: relative;
            display: flex;
            justify-content: space-around;
            align-items: center;
            width: 1100px;
            flex-wrap: wrap;
        }
        .container .card {
            width: 320px ;
            margin: 20px;
            padding: 40px 30px ;
            background-color: #ebf5fc;
            border-radius: 40px;
            box-shadow: -6px -6px 20px rgba(255,255,255, 1),
                            6px 6px 10px  rgba(0, 0, 0, .1);
        }
        .container .card:hover {
            box-shadow: inset -6px -6px 10px rgba(255,255,255, .5),
                            6px 6px 10px  rgba(0, 0, 0, 0.05) inset;
        }
        .container .card .imgBx {
            position: relative;
            text-align: center;
        }
        .container .car .imgBx img {
            max-width: 120px;
        }
        .container .card .contentBx{
            position: relative;
            margin-top: 20px;
            text-align: center;
        }
        .container .car .contentBx h2 {
            color: #32a3b1;
            font-weight: 700;
            font-size: 1.4em;
            letter-spacing: 2px;
        }
        .container .card .contentBx p{
            color: #32a3b1;
        }   
        .container .card .contentBx a {
            display: inline-block;
            padding: 10px 20px;
            margin-top: 15px;
            border-radius: 40px;
            color: #32a3b1;
            font-size: 16px;
            text-decoration: none;
            box-shadow: -4px -4px 15px rgba(255, 255, 255, 1), 4px 4px 15px rgba(0, 0, 0, .2)
        }
        .container .card .contentBx a:hover {
            box-shadow:  inset -4px -4px 15px rgba(255, 255, 255, 1), 4px 4px 15px rgba(0, 0, 0, 0.2) inset;

        }
    </style>
</head>
<body>
    <div class="container">
        <div class="card">
            <div class="imgBx">
                <img src="./img/design.png" alt="">
            </div>
            <div class="contentBx">
                <h2>设计</h2>
                <p>无论任何时候，无论你面临着声明的何等困惑，也或者正在经历多少的挫折，无论道路是如何的艰难，无论希望变得如何渺茫，请你不要绝望，在试一次，成功总是会属于你！</p>
                <a href="#">READ MORE</a>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="card">
            <div class="imgBx">
                <img src="./img/design.png" alt="">
            </div>
            <div class="contentBx">
                <h2>设计</h2>
                <p>无论任何时候，无论你面临着声明的何等困惑，也或者正在经历多少的挫折，无论道路是如何的艰难，无论希望变得如何渺茫，请你不要绝望，在试一次，成功总是会属于你！</p>
                <a href="#">READ MORE</a>
            </div>
        </div>
    </div>
    <div class="container">
        <div class="card">
            <div class="imgBx">
                <img src="./img/design.png" alt="">
            </div>
            <div class="contentBx">
                <h2>设计</h2>
                <p>无论任何时候，无论你面临着声明的何等困惑，也或者正在经历多少的挫折，无论道路是如何的艰难，无论希望变得如何渺茫，请你不要绝望，在试一次，成功总是会属于你！</p>
                <a href="#">READ MORE</a>
            </div>
        </div>
    </div>
    
</body>
</html>